Discover apache documentroot must directory, include the articles, news, trends, analysis and practical advice about apache documentroot must directory on alibabacloud.com
After apache prompts DocumentRoot must be a directory problem and changes DocumentRoot to/home/test/www, it prompts: Starting httpd: Syntax error on line 293 of/etc/httpd/conf/httpd. conf: DocumentRoot must be a directory www.2cto.com [root @ sl ~] #
The documentroot must be a directory error is frequently encountered when configuring the Apache service, and it has been a few hours since the first contact with Apache to find the cause of the error, which is generally due to selinux.SELinux
Today, after modifying the DocumentRoot directory of the httpd. conf file and restarting the HTTPd service, an error is reported.DocumentRoot must be a directory. At first, I thought it was a problem with my own configuration. Then I checked it and
Later found that the original Apache is not configured Well, is the Apache Mod_authz_host module in the control role.
1. If vhosts is not enabled
Just modify httpd.conf
The default directory section is as follows, note the Red section, which
One, Apache main configuration file CommentApache master configuration file:/etc/httpd/conf/httpd.confDefault site home directory:/var/www/html/Apache server configuration information is stored in the main configuration
One, Apache main configuration file CommentApache master configuration file:/etc/httpd/conf/httpd.confDefault site home directory:/var/www/html/Apache server configuration information is stored in the main configuration
This article is organized by the maintainer Ms
Configure Apache server and set DNS
Generally, the virtual host technology refers to the resources (system resources, network bandwidth, and storage space) of one (or a group) server) the technology
ServerRoot "/usr/local"
ServerRoot is used to specify the running directory of the daemon httpd, httpd will automatically change the current directory of the process to this directory after it is started, so if the file or directory specified in the
A profile controls all aspects of the server, so the three files need to be set up to run the server properly.
In addition to these three settings files, Apache uses the Mime.types file to identify different files
The corresponding MIME type, the
Configuration files control all aspects of the server, so you need to set these three files for normal operation of the server.
In addition to these three settings files, Apache uses the mime. types file to identify different files.For the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.